package Basics;

public class 权限修饰符 {
    public static void main(String[] args) {
        Person p = new Person();

    }
}
class Person{
    //本类中

    private String name;
    //（缺省）本类中，同一包下其他类
    String age;
    //本类中，同一包下其他类，任意包下的子类里
    protected String gender;
    //本类中，同一包下其他类，任意包下的子类里，任意包下的任意类里
    public String weight;

    public Person(){
        this.name = "tian";

        this.age = "10";

        this.gender = "男";

        this.weight = "50";
    }

    private void sayHello(){
        System.out.println(name + age + gender + weight);
    }

    private static void sayBey(){

    }

}

